package com.lanou.service.imp;

import com.lanou.bean.Staff;
import com.lanou.mapper.StaffMapper;
import com.lanou.service.StaffService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by dllo on 18/4/16.
 */
@Service
public class StaffServiceImpl implements StaffService {
    @Resource
    private StaffMapper staffMapper;

    @Override
    public Staff login(String loginName, String password) {
        return staffMapper.selectlogin(loginName, password);
    }

    @Override
    public void uplogin(String newPassword, String loginName) {
        staffMapper.uplogin(newPassword, loginName);
    }

}
